import { xhrPostJson } from '@/services';
import { DynamicObjectAny } from '@/typings';

const baseUrl = '/arcv';

const api = {
  fileBoxPage: `${baseUrl}/arcvBox/page`,
  fileBoxList: `${baseUrl}/arcvBox/list`,
  updateBoxsByPosition: `${baseUrl}/arcvBox/updateBoxsByPosition`
};

// 档案盒分页
export const fileBoxPage = (params: DynamicObjectAny) => {
  return xhrPostJson(api.fileBoxPage, params);
};
// 档案盒列表
export const fileBoxList = (params: DynamicObjectAny) => {
  return xhrPostJson(api.fileBoxList, params);
};
// 入柜
export const updateBoxsByPosition = (params: DynamicObjectAny) => {
  return xhrPostJson(api.updateBoxsByPosition, params);
};

export default api;
